package fina2.dcs.returns;

import java.util.ArrayList;
import java.util.List;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Name("retManagerFilter")
@Scope(ScopeType.SESSION)
public class ReturnManagerFilter {

	private List<FinaReturn> returns = new ArrayList<FinaReturn>();

	public List<FinaReturn> getReturns() {
		returns.clear();
		String labels[] = new String[] { "One", "Two", "Three", "Four" };
		String colOne[] = new String[] { "One1", "Two1", "Three1", "Four1" };
		String colSec[] = new String[] { "One2", "Two2", "Three2", "Four2" };
		String colThird[] = new String[] { "One3", "Two3", "Three3", "Four3" };
		for (int i = 0; i < 10; i++)
			returns.add(new FinaReturn(labels, colOne, colSec, colThird));

		return returns;
	}

	public void setReturns(List<FinaReturn> returns) {
		this.returns = returns;
	}

}

class FinaReturn {
	private String labels[];
	private String colOne[];
	private String colSec[];
	private String colThird[];

	public FinaReturn(String labels[], String colOne[], String colSec[], String colThird[]) {
		this.labels = labels;
		this.colOne = colOne;
		this.colSec = colSec;
		this.colThird = colThird;
	}

	public String[] getLabels() {
		return labels;
	}

	public void setLabels(String[] labels) {
		this.labels = labels;
	}

	public String[] getColOne() {
		return colOne;
	}

	public void setColOne(String[] colOne) {
		this.colOne = colOne;
	}

	public String[] getColSec() {
		return colSec;
	}

	public void setColSec(String[] colSec) {
		this.colSec = colSec;
	}

	public String[] getColThird() {
		return colThird;
	}

	public void setColThird(String[] colThird) {
		this.colThird = colThird;
	}

}
